<?php
class Zendvn_Controller_Request_Cli extends Zend_Controller_Request_Abstract {

    public function __construct() {
        $opts = new Zend_Console_Getopt(array(
                'env|e-s'        => 'env name',
                'module|m-s'     => 'module name',
                'controller|c-s' => 'controller name',
                'action|a-s'     => 'action name'
            )
        );

        $params = $opts->getOptions();
        foreach ($params as $param) {
            $this->setParam($param, $opts->getOption($param));
        }

        return $this;
    }

}
